package com.jumaojiang.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RsFileExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RsFileExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFileIdIsNull() {
            addCriterion("file_id is null");
            return (Criteria) this;
        }

        public Criteria andFileIdIsNotNull() {
            addCriterion("file_id is not null");
            return (Criteria) this;
        }

        public Criteria andFileIdEqualTo(Integer value) {
            addCriterion("file_id =", value, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdNotEqualTo(Integer value) {
            addCriterion("file_id <>", value, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdGreaterThan(Integer value) {
            addCriterion("file_id >", value, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("file_id >=", value, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdLessThan(Integer value) {
            addCriterion("file_id <", value, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdLessThanOrEqualTo(Integer value) {
            addCriterion("file_id <=", value, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdIn(List<Integer> values) {
            addCriterion("file_id in", values, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdNotIn(List<Integer> values) {
            addCriterion("file_id not in", values, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdBetween(Integer value1, Integer value2) {
            addCriterion("file_id between", value1, value2, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdNotBetween(Integer value1, Integer value2) {
            addCriterion("file_id not between", value1, value2, "fileId");
            return (Criteria) this;
        }

        public Criteria andChaIdIsNull() {
            addCriterion("cha_id is null");
            return (Criteria) this;
        }

        public Criteria andChaIdIsNotNull() {
            addCriterion("cha_id is not null");
            return (Criteria) this;
        }

        public Criteria andChaIdEqualTo(Integer value) {
            addCriterion("cha_id =", value, "chaId");
            return (Criteria) this;
        }

        public Criteria andChaIdNotEqualTo(Integer value) {
            addCriterion("cha_id <>", value, "chaId");
            return (Criteria) this;
        }

        public Criteria andChaIdGreaterThan(Integer value) {
            addCriterion("cha_id >", value, "chaId");
            return (Criteria) this;
        }

        public Criteria andChaIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("cha_id >=", value, "chaId");
            return (Criteria) this;
        }

        public Criteria andChaIdLessThan(Integer value) {
            addCriterion("cha_id <", value, "chaId");
            return (Criteria) this;
        }

        public Criteria andChaIdLessThanOrEqualTo(Integer value) {
            addCriterion("cha_id <=", value, "chaId");
            return (Criteria) this;
        }

        public Criteria andChaIdIn(List<Integer> values) {
            addCriterion("cha_id in", values, "chaId");
            return (Criteria) this;
        }

        public Criteria andChaIdNotIn(List<Integer> values) {
            addCriterion("cha_id not in", values, "chaId");
            return (Criteria) this;
        }

        public Criteria andChaIdBetween(Integer value1, Integer value2) {
            addCriterion("cha_id between", value1, value2, "chaId");
            return (Criteria) this;
        }

        public Criteria andChaIdNotBetween(Integer value1, Integer value2) {
            addCriterion("cha_id not between", value1, value2, "chaId");
            return (Criteria) this;
        }

        public Criteria andSectionTitleIsNull() {
            addCriterion("section_title is null");
            return (Criteria) this;
        }

        public Criteria andSectionTitleIsNotNull() {
            addCriterion("section_title is not null");
            return (Criteria) this;
        }

        public Criteria andSectionTitleEqualTo(String value) {
            addCriterion("section_title =", value, "sectionTitle");
            return (Criteria) this;
        }

        public Criteria andSectionTitleNotEqualTo(String value) {
            addCriterion("section_title <>", value, "sectionTitle");
            return (Criteria) this;
        }

        public Criteria andSectionTitleGreaterThan(String value) {
            addCriterion("section_title >", value, "sectionTitle");
            return (Criteria) this;
        }

        public Criteria andSectionTitleGreaterThanOrEqualTo(String value) {
            addCriterion("section_title >=", value, "sectionTitle");
            return (Criteria) this;
        }

        public Criteria andSectionTitleLessThan(String value) {
            addCriterion("section_title <", value, "sectionTitle");
            return (Criteria) this;
        }

        public Criteria andSectionTitleLessThanOrEqualTo(String value) {
            addCriterion("section_title <=", value, "sectionTitle");
            return (Criteria) this;
        }

        public Criteria andSectionTitleLike(String value) {
            addCriterion("section_title like", value, "sectionTitle");
            return (Criteria) this;
        }

        public Criteria andSectionTitleNotLike(String value) {
            addCriterion("section_title not like", value, "sectionTitle");
            return (Criteria) this;
        }

        public Criteria andSectionTitleIn(List<String> values) {
            addCriterion("section_title in", values, "sectionTitle");
            return (Criteria) this;
        }

        public Criteria andSectionTitleNotIn(List<String> values) {
            addCriterion("section_title not in", values, "sectionTitle");
            return (Criteria) this;
        }

        public Criteria andSectionTitleBetween(String value1, String value2) {
            addCriterion("section_title between", value1, value2, "sectionTitle");
            return (Criteria) this;
        }

        public Criteria andSectionTitleNotBetween(String value1, String value2) {
            addCriterion("section_title not between", value1, value2, "sectionTitle");
            return (Criteria) this;
        }

        public Criteria andFileNameIsNull() {
            addCriterion("file_name is null");
            return (Criteria) this;
        }

        public Criteria andFileNameIsNotNull() {
            addCriterion("file_name is not null");
            return (Criteria) this;
        }

        public Criteria andFileNameEqualTo(String value) {
            addCriterion("file_name =", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameNotEqualTo(String value) {
            addCriterion("file_name <>", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameGreaterThan(String value) {
            addCriterion("file_name >", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameGreaterThanOrEqualTo(String value) {
            addCriterion("file_name >=", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameLessThan(String value) {
            addCriterion("file_name <", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameLessThanOrEqualTo(String value) {
            addCriterion("file_name <=", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameLike(String value) {
            addCriterion("file_name like", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameNotLike(String value) {
            addCriterion("file_name not like", value, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameIn(List<String> values) {
            addCriterion("file_name in", values, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameNotIn(List<String> values) {
            addCriterion("file_name not in", values, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameBetween(String value1, String value2) {
            addCriterion("file_name between", value1, value2, "fileName");
            return (Criteria) this;
        }

        public Criteria andFileNameNotBetween(String value1, String value2) {
            addCriterion("file_name not between", value1, value2, "fileName");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andFileIsDelIsNull() {
            addCriterion("file_is_del is null");
            return (Criteria) this;
        }

        public Criteria andFileIsDelIsNotNull() {
            addCriterion("file_is_del is not null");
            return (Criteria) this;
        }

        public Criteria andFileIsDelEqualTo(Integer value) {
            addCriterion("file_is_del =", value, "fileIsDel");
            return (Criteria) this;
        }

        public Criteria andFileIsDelNotEqualTo(Integer value) {
            addCriterion("file_is_del <>", value, "fileIsDel");
            return (Criteria) this;
        }

        public Criteria andFileIsDelGreaterThan(Integer value) {
            addCriterion("file_is_del >", value, "fileIsDel");
            return (Criteria) this;
        }

        public Criteria andFileIsDelGreaterThanOrEqualTo(Integer value) {
            addCriterion("file_is_del >=", value, "fileIsDel");
            return (Criteria) this;
        }

        public Criteria andFileIsDelLessThan(Integer value) {
            addCriterion("file_is_del <", value, "fileIsDel");
            return (Criteria) this;
        }

        public Criteria andFileIsDelLessThanOrEqualTo(Integer value) {
            addCriterion("file_is_del <=", value, "fileIsDel");
            return (Criteria) this;
        }

        public Criteria andFileIsDelIn(List<Integer> values) {
            addCriterion("file_is_del in", values, "fileIsDel");
            return (Criteria) this;
        }

        public Criteria andFileIsDelNotIn(List<Integer> values) {
            addCriterion("file_is_del not in", values, "fileIsDel");
            return (Criteria) this;
        }

        public Criteria andFileIsDelBetween(Integer value1, Integer value2) {
            addCriterion("file_is_del between", value1, value2, "fileIsDel");
            return (Criteria) this;
        }

        public Criteria andFileIsDelNotBetween(Integer value1, Integer value2) {
            addCriterion("file_is_del not between", value1, value2, "fileIsDel");
            return (Criteria) this;
        }

        public Criteria andFileCreateTimeIsNull() {
            addCriterion("file_create_time is null");
            return (Criteria) this;
        }

        public Criteria andFileCreateTimeIsNotNull() {
            addCriterion("file_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andFileCreateTimeEqualTo(Date value) {
            addCriterion("file_create_time =", value, "fileCreateTime");
            return (Criteria) this;
        }

        public Criteria andFileCreateTimeNotEqualTo(Date value) {
            addCriterion("file_create_time <>", value, "fileCreateTime");
            return (Criteria) this;
        }

        public Criteria andFileCreateTimeGreaterThan(Date value) {
            addCriterion("file_create_time >", value, "fileCreateTime");
            return (Criteria) this;
        }

        public Criteria andFileCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("file_create_time >=", value, "fileCreateTime");
            return (Criteria) this;
        }

        public Criteria andFileCreateTimeLessThan(Date value) {
            addCriterion("file_create_time <", value, "fileCreateTime");
            return (Criteria) this;
        }

        public Criteria andFileCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("file_create_time <=", value, "fileCreateTime");
            return (Criteria) this;
        }

        public Criteria andFileCreateTimeIn(List<Date> values) {
            addCriterion("file_create_time in", values, "fileCreateTime");
            return (Criteria) this;
        }

        public Criteria andFileCreateTimeNotIn(List<Date> values) {
            addCriterion("file_create_time not in", values, "fileCreateTime");
            return (Criteria) this;
        }

        public Criteria andFileCreateTimeBetween(Date value1, Date value2) {
            addCriterion("file_create_time between", value1, value2, "fileCreateTime");
            return (Criteria) this;
        }

        public Criteria andFileCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("file_create_time not between", value1, value2, "fileCreateTime");
            return (Criteria) this;
        }

        public Criteria andFileUpdateTimeIsNull() {
            addCriterion("file_update_time is null");
            return (Criteria) this;
        }

        public Criteria andFileUpdateTimeIsNotNull() {
            addCriterion("file_update_time is not null");
            return (Criteria) this;
        }

        public Criteria andFileUpdateTimeEqualTo(Date value) {
            addCriterion("file_update_time =", value, "fileUpdateTime");
            return (Criteria) this;
        }

        public Criteria andFileUpdateTimeNotEqualTo(Date value) {
            addCriterion("file_update_time <>", value, "fileUpdateTime");
            return (Criteria) this;
        }

        public Criteria andFileUpdateTimeGreaterThan(Date value) {
            addCriterion("file_update_time >", value, "fileUpdateTime");
            return (Criteria) this;
        }

        public Criteria andFileUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("file_update_time >=", value, "fileUpdateTime");
            return (Criteria) this;
        }

        public Criteria andFileUpdateTimeLessThan(Date value) {
            addCriterion("file_update_time <", value, "fileUpdateTime");
            return (Criteria) this;
        }

        public Criteria andFileUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("file_update_time <=", value, "fileUpdateTime");
            return (Criteria) this;
        }

        public Criteria andFileUpdateTimeIn(List<Date> values) {
            addCriterion("file_update_time in", values, "fileUpdateTime");
            return (Criteria) this;
        }

        public Criteria andFileUpdateTimeNotIn(List<Date> values) {
            addCriterion("file_update_time not in", values, "fileUpdateTime");
            return (Criteria) this;
        }

        public Criteria andFileUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("file_update_time between", value1, value2, "fileUpdateTime");
            return (Criteria) this;
        }

        public Criteria andFileUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("file_update_time not between", value1, value2, "fileUpdateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}